<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
<title>大猴子-程序猿的净土</title>
<div th:include="tmp/css :: css"></div>
</head>

<body>
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<h3>登陆</h3>
			</div>
		</div>
		<hr />
		<div class="row">
			<div th:if="${param.error}">用户名或密码错</div>
			<div th:if="${param.logout}">您已注销成功</div>
			<div class="col-md-12">
				<form th:action="@{/adminCtrl/login}" method="POST" class="form-horizontal" role="form">
					<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
					<div class="form-group">
						<label class="col-sm-2 control-label">用户名:</label>
						<div class="col-sm-10">
							<input value="lgl" name="username" type="text" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">密码:</label>
						<div class="col-sm-10">
							<input name="password" type="password" class="form-control" id="inputPassword3" />
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-8">
							<div class="checkbox">
								<label> <input type="checkbox" />记住密码
								</label>
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-8">
							<button type="submit" class="btn btn-default">登陆</button>
						</div>
					</div>
				</form>
				<h1 th:inline="text">Hello [[${#httpServletRequest.remoteUser}]]!</h1>
			</div>
		</div>
	</div>
</body>
</html>
